import React from 'react';
import {pathFactory} from "../Helper/common";
import Demo from "./demo";
import SwitchDemo1 from "./switch/switch.demo1";
import SwitchDemo2 from "./switch/switch.demo2";
import MarkdownSection from "./MarkdownSection";
import s from './switch/switch.md'

const Switchdemo = () => {
  return (
    <div>
      <Demo name={pathFactory(1,'switch')} intro={'基本用法'}>
        <SwitchDemo1/>
      </Demo>
      <Demo name={pathFactory(2,'switch')} intro={'加上标注'}>
        <SwitchDemo2/>
      </Demo>
      <MarkdownSection mdFile={s}/>
    </div>
  );
};

export default Switchdemo;